package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.entity.Supplier
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface SupplierMapper {

    fun getById(id: Long): Supplier?;

    fun insert(record: Supplier);

    fun queryForList(): List<Supplier>?

    fun getByName(@Param("supplierName") supplierName: String?): Supplier?

    fun update(newSupplier: Supplier)

    fun getByControlNo(@Param("controlNo") controlNo: String?): Supplier?

    fun queryByIdList(@Param("idList") idList: List<Long?>): List<Supplier>

    fun delete(@Param("id") id: Long?, @Param("editor") editor: Long?)

    fun  queryAllSupplier(): List<Supplier>

}